#include "button.h"

Button::Button(QWidget *parent) : QPushButton(parent)
{



}

Button::Button(QString pixpath)
{

     this->pix.load(pixpath);

     this->setIcon(QIcon(pix));

     this->setStyleSheet("QPushButton{border:0px}");
     this->resize(100,100);
     this->setIcon(pix);
     this->setIconSize(this->size());
     this->rct.setSize(this->size());


}

void Button::setrct()
{



    this->rct.setRect(this->x(),this->y(),this->width(),this->height());


}

void Button::setsize(int w,int h)
{
    this->resize(w,h);

    this->setIconSize(this->size());
    this->rct.setSize(this->size());




}
